package com.kd.service.employee;

        import com.baomidou.mybatisplus.extension.service.IService;
        import com.kd.common.PageResult;
        import com.kd.entity.Employee;
        import org.springframework.stereotype.Service;

        import java.util.Date;

@Service
public interface EmployeeService extends IService<Employee> {

    Employee findEmployeeByEId(int eid);
    Employee findEmployeeByEId(String eid);
    boolean insert(Employee employee);
    Integer getEidByCardid(String cardid);
    Integer getEidByphone(String phone);
    boolean updateEmployee(Employee employee);
    int getEmployeeCount();
    PageResult<Employee,Integer> findEmployeeListWithFilters(
            Integer cursor, Integer limit, Integer eid,
            String name, Date hiredate, Integer status, Boolean hasImage, Integer permission);

    Employee setPermission(Integer eid, Integer permission);

}
